<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewCreditosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewCreditosLabel_idCredito}"/>
                    <h:outputText value="#{creditosController.selected.idCredito}" title="#{bundle.ViewCreditosTitle_idCredito}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_fechaSolicitud}"/>
                    <h:outputText value="#{creditosController.selected.fechaSolicitud}" title="#{bundle.ViewCreditosTitle_fechaSolicitud}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewCreditosLabel_valorCuota}"/>
                    <h:outputText value="#{creditosController.selected.valorCuota}" title="#{bundle.ViewCreditosTitle_valorCuota}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_plazos}"/>
                    <h:outputText value="#{creditosController.selected.plazos}" title="#{bundle.ViewCreditosTitle_plazos}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_totalCredito}"/>
                    <h:outputText value="#{creditosController.selected.totalCredito}" title="#{bundle.ViewCreditosTitle_totalCredito}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_estado}"/>
                    <h:outputText value="#{creditosController.selected.estado}" title="#{bundle.ViewCreditosTitle_estado}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_idEmpleadoCodeudor}"/>
                    <h:outputText value="#{creditosController.selected.idEmpleadoCodeudor}" title="#{bundle.ViewCreditosTitle_idEmpleadoCodeudor}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_idEmpleadoAdministrador}"/>
                    <h:outputText value="#{creditosController.selected.idEmpleadoAdministrador}" title="#{bundle.ViewCreditosTitle_idEmpleadoAdministrador}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_idTipoCredito}"/>
                    <h:outputText value="#{creditosController.selected.idTipoCredito}" title="#{bundle.ViewCreditosTitle_idTipoCredito}"/>
                    <h:outputText value="#{bundle.ViewCreditosLabel_idEmpleadoTitular}"/>
                    <h:outputText value="#{creditosController.selected.idEmpleadoTitular}" title="#{bundle.ViewCreditosTitle_idEmpleadoTitular}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{creditosController.destroyAndView}" value="#{bundle.ViewCreditosDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewCreditosEditLink}"/>
                <br />
                <h:commandLink action="#{creditosController.prepareCreate}" value="#{bundle.ViewCreditosCreateLink}" />
                <br />
                <h:commandLink action="#{creditosController.prepareList}" value="#{bundle.ViewCreditosShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewCreditosIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
